package com.atguigu.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Auther: fangshicai
 * @Date: 2022/2/25 16:18
 * @Description: 阿里云工具类 用来拿常量
 */
@Component
public class AliyunVideoConstont implements InitializingBean {

    @Value("${aliyun.vod.file.keyid}")
   private String accessKeyId;

    @Value("${aliyun.vod.file.keysecret}")
    private String accessKeySecret;


    public static String ACCESS_KEY_ID;
    public static String ACCESS_KEY_SECRET;
    @Override
    public void afterPropertiesSet() throws Exception {
        ACCESS_KEY_ID = accessKeyId;
        ACCESS_KEY_SECRET=accessKeySecret;
    }
}
